#pragma once
#include <iostream>
#include <conio.h>
#include <time.h>
using namespace std;
class Car
{
	string color;
	int horsepower;
	string brand;
	int doorNumber;
	long price;
	public:

	Car()
	{
		srand(time(NULL));
		for(int i=0;i<10;++i)
		{
		int a=rand() % 5;
		int b=rand() % 5;
		int c=rand() % 5;
		int d=rand() % 2;
		int e=rand() % 5;
		string colors[6] = {"White","Black","Gray","Red","Golden","Silver"};
		string brands[6] = {"Lamborghini","Ferrari","Ford","Chevrolet","Mercedes","Porsche"};
		int horsepowers [6] = {rand() % 500+500,rand() % 500+500,rand() % 500+500,rand() % 500+500,rand() % 500+500,rand() % 500+500};
		long prices [6]={(rand() % 500000)+500000,(rand() % 500000)+500000,(rand() % 500000)+500000,(rand() % 500000)+500000,(rand() % 500000)+500000,(rand() % 500000)+500000};
		int doorNumbers[2]={2,4};
		color=colors[a];
		price=prices[b];
		horsepower=horsepowers[c];
		doorNumber=doorNumbers[d];
		brand=brands[e];
		}
	}

	int getHorsepower()
	{
		return horsepower;
	}
	float getPrice()
	{
		return price;
	}
	string getColor()
	{
		return color;
	}
	string getBrand()
	{
		return brand;
	}
	int getDoorNumber()
	{
		return doorNumber;
	}
};